package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.RscLoanChgHis;
import com.fdb.efp.nls.service.vo.RscLoanChgHisVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>DAO interface:风险分类台账变动历史表				<p>
 * @author chenqm1
 * @date 2018-05-07
 */
public interface RscLoanChgHisDao {
	
	public int insertRscLoanChgHis(RscLoanChgHis rscLoanChgHis);
	
	public int deleteByPk(RscLoanChgHis rscLoanChgHis);
	
	public int updateByPk(RscLoanChgHis rscLoanChgHis);
	
	public RscLoanChgHis queryByPk(RscLoanChgHis rscLoanChgHis);
	
	public List<RscLoanChgHis> queryAllOwnerByPage(RscLoanChgHisVO rscLoanChgHis);
	
	public List<RscLoanChgHis> queryAllCurrOrgByPage(RscLoanChgHisVO rscLoanChgHis);
	
	public List<RscLoanChgHis> queryAllCurrDownOrgByPage(RscLoanChgHisVO rscLoanChgHis);
	
	public int insertBatchRscLoanChgHis(@Param(value = "rscLoanChgHis") List<RscLoanChgHis> rscLoanChgHisList);

	public void deleteBydaybatDate(@Param("startRunDate") String startRunDate);

	public int rscLoanChgHisCusHandOver(@Param("fromUser") String fromUser, @Param("toUser") String toUser, @Param("fromBrId") String fromBrId, @Param("toBrId") String toBrId, @Param("cusIds") List<String> cusIds);
	
		public List<RscLoanChgHis> queryALLByPage(RscLoanChgHisVO rscLoanChgHis);
}
